<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group(function () {
    Route::post('pwdLogin', 'Login/pwdLogin');    //密码登录
    Route::get('getUserInfo', 'User/userInfo');    //获取老师信息
    Route::get('checkLogin', 'Login/checkLogin');  //验证登录
    Route::post('logout', 'Login/logout');          //登出
    Route::post('reUpdatePwd', 'Login/reUpdatePwd');//修改密码-原密码
    Route::post('getUserInfo', 'Login/getUserInfo');//获取用户信息

    //个人数据统计
    Route::post('personalData/getXkCenter', 'PersonalData/getXkCenter');//查询-销课中心统计
});
//通知公告
Route::group('system/sysNotification', function () {
    Route::get('listMyNotification', 'system/SysNotification/listMyNotification');//分页-通知公告
    Route::get('getNotificationInfo', 'system/SysNotification/getNotificationInfo');//查询-通知详情
    Route::get('getMyUnreadCount', 'system/SysNotification/getMyUnreadCount');//查询-未读数量
});
//全科学习
Route::group('subject', function () {
    Route::get('dict', 'subject/Subject/dict');//全科教材
    Route::get('grade', 'subject/Subject/grade');//全科年级
    Route::get('subject', 'subject/Subject/subject');//全科科目
    Route::post('courseList', 'subject/Subject/courseList');//课程列表
    Route::get('knowledge', 'subject/Subject/knowledge');//知识点
    Route::get('getCourseDetail', 'subject/Subject/getCourseDetail');//课程详情
    Route::get('courseChapter', 'subject/Subject/courseChapter');//课程章节
    Route::get('chapterQuestion', 'subject/Subject/chapterQuestion');//章节题目
    Route::get('chapterKnowledge', 'subject/Subject/chapterKnowledge');//章节知识点
    Route::post('editNote', 'subject/Subject/editNote');//编辑教材笔记
    Route::get('getNote', 'subject/Subject/getNote');//获取教材笔记

    Route::post('student/listSelectMyStudentClassHourPage', 'student/Student/listSelectMyStudentClassHourPage');//分页Select查询我的学员

    Route::get('student/afterClass', 'subject/Subject/afterClass');//获取学生课后作业
    Route::post('student/afterClassCorrect', 'subject/Subject/afterClassCorrect');//学生课后作业批改
    Route::post('student/afterClassComment', 'subject/Subject/afterClassComment');//学生课后作业评价
});

//全科题库
Route::group('subject/question', function () {
    Route::post('listPage', 'subject/Question/listPage');//分页查询
    Route::post('listSelectPage', 'subject/Question/listSelectPage');//分页Select查询
    Route::post('get', 'subject/Question/get');//查询
    Route::post('randomQuestion', 'subject/Question/randomQuestion');//随机题
    Route::post('setQuestion', 'subject/Question/setQuestion');//布置课后作业
    Route::post('startQuestion', 'subject/Question/startQuestion');//开始答题
    Route::post('answerQuestion', 'subject/Question/answerQuestion');//答案提交
});
//学员
Route::group('student', function () {
    Route::get('student/listMyTeachStudentPage', 'student/Student/listMyTeachStudentPage');//分页-我教授的学员
    Route::get('student/getStudentInfo', 'student/Student/getStudentInfo');//查询-学员个人信息
    Route::get('student/listMyReadingRecord', 'student/Student/listMyReadingRecord');//分页-学员阅读记录
    Route::get('student/listStudentVocabularyPage', 'student/Student/listStudentVocabularyPage');//分页-学员测评记录
    Route::get('student/getDetail', 'student/Student/getDetail');//查询-学员测评评估报告
    Route::post('student/myTeachStudentList', 'student/Student/myTeachStudentList');//分页Select查询我的学员
    Route::post('student/listSelectClassHourPage', 'student/Student/listSelectClassHourPage');//分页Select查询我的学员课时
});


Route::group('learn', function () {
    //阅读理解
    Route::get('learnReadingArticle/getReadingInfo', 'learn/TLearnReadingArticle/getReadingInfo');//查询-阅读记录信息
    Route::get('learnReadingArticle/getReadingExtendInfo', 'learn/TLearnReadingArticle/getReadingExtendInfo');//查询-阅读文章信息
    Route::get('learnReadingArticle/getReadingAnswerInfo', 'learn/TLearnReadingArticle/getReadingAnswerInfo');//查询-阅读答题信息
    Route::get('learnReadingArticle/getReadingMarkWordInfo', 'learn/TLearnReadingArticle/getReadingMarkWordInfo');//查询-阅读标记单词信息
    Route::post('learnReadingArticle/markWord', 'learn/TLearnReadingArticle/markWord');//加入生词
    Route::post('learnReadingArticle/startReading', 'learn/TLearnReadingArticle/startReading');//开始阅读
    Route::post('learnReadingArticle/answerQuestion', 'learn/TLearnReadingArticle/answerQuestion');//答题提交
    Route::get('learnReadingArticle/getNextReadingArticleId', 'learn/TLearnReadingArticle/getNextReadingArticleId');//查询-下一章节文章ID

    //AI文章
    Route::post('learnReadingArticle/startAiReading', 'learn/TLearnReadingArticle/startAiReading');//始AI阅读

    //词汇量测试
    Route::get('learnVocabularyRecord/listMyVocabularyPage', 'learn/LearnVocabularyRecord/listMyVocabularyPage');//分页-测评记录
    Route::get('learnVocabularyRecord/getDetail', 'learn/LearnVocabularyRecord/getDetail');//查询-测评评估报告
    Route::post('learnVocabularyRecord/startVocabulary', 'learn/LearnVocabularyRecord/startVocabulary');//开始-测试词汇量
    Route::post('learnVocabularyRecord/submitVocabulary', 'learn/LearnVocabularyRecord/submitVocabulary');//提交-词汇量测试

    //上课记录
    Route::get('learnSkRecord/listXkPage', 'learn/LearnSkRecord/listXkPage');//分页-销课列表

    Route::get('learnSkRecord/getSkIdByAppointment', 'learn/LearnSkRecord/getSkIdByAppointment');//获取-上课ID
    Route::get('learnSkRecord/getLearningReport', 'learn/LearnSkRecord/getLearningReport');//查询-学习报告
    Route::post('learnSkRecord/studentEvaluate', 'learn/LearnSkRecord/studentEvaluate');//评价
    Route::get('learnSkRecord/getSkRecordReport', 'learn/LearnSkRecord/getSkRecordReport');//查询-学习报告

    //21天抗遗忘
//    Route::post('learnSkRecord/createTwentyAntiForgetting', 'learn/LearnSkRecord/createTwentyAntiForgetting');//创建21天抗遗忘
    Route::get('learnTwentyAntiForgetting/listMyDayList', 'learn/LearnTwentyAntiForgetting/listMyDayList');//查询-我当天的抗遗忘记录
    Route::get('learnTwentyAntiForgetting/listMyDayListV2', 'learn/LearnTwentyAntiForgetting/listMyDayListV2');//查询-我当天的抗遗忘记录V2
    Route::get('learnTwentyAntiForgetting/listMyList', 'learn/LearnTwentyAntiForgetting/listMyList');//查询-我的抗遗忘记录

    //全科抗遗忘
    Route::post('learnSubjectAntiForgetting/createSubjectAntiForgetting', 'learn/LearnSubjectAntiForgetting/createSubjectAntiForgetting');//创建抗遗忘
    Route::get('learnSubjectAntiForgetting/listMyList', 'learn/LearnSubjectAntiForgetting/listMyList');//查询-我的抗遗忘记录
    Route::post('learnSubjectAntiForgetting/startAntiForgetting', 'learn/LearnSubjectAntiForgetting/startAntiForgetting');//开始抗遗忘
    Route::post('learnSubjectAntiForgetting/endAntiForgetting', 'learn/LearnSubjectAntiForgetting/endAntiForgetting');//结束抗遗忘
    Route::get('learnSubjectAntiForgetting/getLearningReport', 'learn/LearnSubjectAntiForgetting/getLearningReport');//查询-学习报告

    //单词识记
    Route::get('learnWordMemorizeRecord/getTjData', 'learn/LearnWordMemorizeRecord/getTjData');//查询-课程单词统计数据
    Route::get('learnWordMemorizeRecord/getMemorizeLevelNum', 'learn/LearnWordMemorizeRecord/getMemorizeLevelNum');//查询-获取单词记忆等级数量
    Route::get('learnWordMemorizeRecord/listNewWordPage', 'learn/LearnWordMemorizeRecord/listNewWordPage');//分页-课程学新单词
    Route::post('learnWordMemorizeRecord/submitSuccess', 'learn/LearnWordMemorizeRecord/submitSuccess');//提交-单词学习记录
    Route::get('learnWordMemorizeRecord/listReviewWord', 'learn/LearnWordMemorizeRecord/listReviewWord');//查询-课程复习单词

    //听力测试
    Route::post('learnHearingRecord/startHearing', 'learn/LearnHearingRecord/startHearing');//开始-听力测试
    Route::post('learnHearingRecord/submitVocabulary', 'learn/LearnHearingRecord/submitVocabulary');//提交-听力测试
    Route::get('learnHearingRecord/getDetail', 'learn/LearnHearingRecord/getDetail');//查询-测评评估报告

    //学练一体
    Route::get('learnLatro/listCourseLexicon', 'learn/LearnLatro/listCourseLexicon');//分页-课程单词
    Route::get('learnLatro/getWordDetail', 'learn/LearnLatro/getWordDetail');//查询-单词详情
    Route::post('learnLatro/markWord', 'learn/LearnLatro/markWord');//标记单词
});

//核心
Route::group('core', function () {
    //词库
    Route::get('coreMyLexicon/listMyCollect', 'core/CoreMyLexicon/listMyCollect');//分页-我的收藏词库
    Route::post('coreMyLexicon/updateCollect', 'core/CoreMyLexicon/updateCollect');//收藏-取消收藏

    //请假
    Route::post('coreTrainerTimeApply/apply', 'core/CoreTrainerTimeApply/apply');//提交申请
    Route::get('coreTrainerTimeApply/listMyTimeApply', 'core/CoreTrainerTimeApply/listMyTimeApply');//查询-我的申请记录
    Route::post('coreTrainerTimeApply/del', 'core/CoreTrainerTimeApply/del');//删除

    //排课预约
    Route::get('coreCourseAppointment/listDayMyCourseAppointment', 'core/CoreCourseAppointment/listDayMyCourseAppointment');//查询-我的课表（按天）
    Route::get('coreCourseAppointment/listMyCourseAppointment', 'core/CoreCourseAppointment/listMyCourseAppointment');//查询-我的课表
    Route::post('coreCourseAppointment/listMyCourseAppointmentList', 'core/CoreCourseAppointment/listMyCourseAppointmentList');//查询-我的课表
    Route::post('coreCourseAppointment/startSk', 'core/CoreCourseAppointment/startSk');//开始上课
    Route::post('coreCourseAppointment/endSk', 'core/CoreCourseAppointment/endSk');//结束上课
    Route::get('coreCourseAppointment/getSkEndTime', 'core/CoreCourseAppointment/getSkEndTime');//查询-上课预计结束时间
    Route::get('coreCourseAppointment/getSkrecordInfoByAppointmentId', 'core/CoreCourseAppointment/getSkrecordInfoByAppointmentId');//根据预约ID查询上课记录信息
    Route::post('coreCourseAppointment/teacherAppointment', 'core/CoreCourseAppointment/teacherAppointment');//老师创建预约-时间优先
    Route::post('coreCourseAppointment/updateAppointment', 'core/CoreCourseAppointment/updateAppointment');//老师修改预约
    Route::post('coreCourseAppointment/cancelAppointment', 'core/CoreCourseAppointment/cancelAppointment');//老师取消预约
});

//课程
Route::group('course', function () {
    //词库
    Route::get('lexicon/getSkRecordFirstLetterWords', 'course/Lexicon/getSkRecordFirstLetterWords');//查询-上课所学单词（首字母模式）
    Route::get('lexicon/listLexiconByCourseId', 'course/Lexicon/listLexiconByCourseId');//查询-课程单词（首字母模式）

    //教学材料
    Route::get('teachingMaterial/listTeachingMaterial', 'course/TeachingMaterial/listTeachingMaterial');//查询-教学材料列表

    //课程
    Route::get('course/getCourseDetail', 'course/Course/getCourseDetail');//查询-课程详情
    Route::get('course/listBooks', 'course/Course/listBooks');//查询-教材
    Route::get('course/listStudentOpen', 'course/Course/listStudentOpen');//查询-学员开通课程查询
    Route::get('course/listCourse', 'course/Course/listCourse');//查询-课程列表
    Route::get('course/listReadingByCourseId', 'course/Course/listReadingByCourseId');//查询-课程文章
});
//预约排课
Route::group('appointment', function () {
    //学生课程预约
    Route::get('listStudentAppointment', 'course/StudentAppointment/listStudentAppointment');//查询-学生预约课程列表
    Route::post('handelStudentAppointment', 'course/StudentAppointment/handelStudentAppointment');//处理学生预约课程
});

//全科体验课
Route::group('experience', function () {
    Route::post('listExperienceAppointmentOrderPage', 'course/ExperienceAppointment/listExperienceAppointmentOrderPage');//分页-学生体验课程订单列表
    Route::post('catchOrder', 'course/ExperienceAppointment/catchOrder');//抢单
});

//说吧体验课
Route::group('core/coreTrialClassOrder', function () {
    Route::get('listGrabTrialClassOrderPage', 'core/CoreTrialClassOrder/listGrabTrialClassOrderPage');//分页-学生体验课程订单列表
    Route::post('grabOrder', 'core/CoreTrialClassOrder/grabOrder');//抢单
});

//语法
Route::group('grammar', function () {
    //语法年级
    Route::get('grammarGrade/listGrammarGrade', 'grammar/GrammarGrade/listGrammarGrade');//查询-语法年级
    Route::get('grammarGrade/getCurrentSelectGrade', 'grammar/GrammarGrade/getCurrentSelectGrade');//查询-当前选择年级
    Route::post('grammarGrade/switchGrade', 'grammar/GrammarGrade/switchGrade');//切换年级
    Route::post('grammarGrade/listSelectPage', 'grammar/GrammarGrade/listSelectPage');//分页查询

    //语法学习
    Route::post('grammarLearn/startDetection', 'grammar/GrammarLearn/startDetection');//开始检测
    Route::get('grammarLearn/getCurrentQuestion', 'grammar/GrammarLearn/getCurrentQuestion');//查询-当前未做的第一题
    Route::post('grammarLearn/submitQuestion', 'grammar/GrammarLearn/submitQuestion');//提交答案
    Route::get('grammarLearn/getDetectionResult', 'grammar/GrammarLearn/getDetectionResult');//查询-检测结果
    Route::get('grammarLearn/getDetectionAnswerInfo', 'grammar/GrammarLearn/getDetectionAnswerInfo');//查询-答题记录信息

    //语法分类
    Route::get('grammarCategory/getGrammarBasicInfo', 'grammar/GrammarCategory/getGrammarBasicInfo');//查询-语法页面基础信息
    Route::get('grammarCategory/listCategory', 'grammar/GrammarCategory/listCategory');//查询-语法分类
    Route::get('grammarCategory/getGrammarCategoryInfo', 'grammar/GrammarCategory/getGrammarCategoryInfo');//查询-分类详情
    Route::post('grammarCategory/listPage', 'grammar/GrammarCategory/listPage');//分页查询
});


//阶段类型
Route::group('say/category', function () {
    Route::post('listCategory', 'say.SayCategory/listCategory');//课程阶段列表
});

//普通课程
Route::group('say/sayTeachSentence', function () {
    Route::post('listTeachSentence', 'say.SayTeachSentence/listTeachSentence');//普通课母句-列表
    Route::post('getTeachSentenceInfo', 'say.SayTeachSentence/getTeachSentenceInfo');//普通课母句详情
});

//认知课程
Route::group('say/sayCognitiveCourse', function () {
    Route::post('listCognitiveCourse', 'say.SayCognitiveCourse/listCognitiveCourse');//认知课-列表
});

//句型学习
Route::group('say/question', function () {
    Route::post('startQuestion', 'say.Question/startQuestion');//开始学习
    Route::post('answerQuestion', 'say.Question/answerQuestion');//提交答案
});

//学习报告
Route::group('say/question', function () {
    Route::post('listQuestionData', 'say.Question/listQuestionData');//学习列表
    Route::post('startQuestion', 'say.Question/startQuestion');//开始学习
    Route::post('answerQuestion', 'say.Question/answerQuestion');//提交答案
    Route::get('getSayQuestionReport', 'say.Question/getSayQuestionReport');//学习结果报告
    Route::post('setCorrectStatus', 'say.Question/setCorrectStatus');//设置掌握状态
});

//复习
Route::group('say/review', function () {
    Route::post('listReviewData', 'say.Review/listReviewData');//复习列表
    Route::post('startReview', 'say.Review/startReview');//开始复习
    Route::post('answerReview', 'say.Review/answerReview');//提交答案
    Route::get('getSayReviewReport', 'say.Review/getSayReviewReport');//学习结果报告
});

//说吧Ai抗遗忘
Route::group('learn/learnSayAntiForgetting', function () {
    Route::post('createSayAntiForgetting', 'learn.LearnSayAntiForgetting/createSayAntiForgetting');//创建抗遗忘
    Route::get('listMyList', 'learn.LearnSayAntiForgetting/listMyList');//我的抗遗忘记录
    Route::post('startAntiForgetting', 'learn.LearnSayAntiForgetting/startAntiForgetting');//开始抗遗忘
    Route::get('listForgettingData', 'learn.LearnSayAntiForgetting/listForgettingData');//开始抗遗忘
    Route::post('endAntiForgetting', 'learn.LearnSayAntiForgetting/endAntiForgetting');//结束抗遗忘
    Route::get('getForgettingReport', 'learn.LearnSayAntiForgetting/getForgettingReport');//结束抗遗忘
});

//能力测评
Route::group('learn/learnSayVocabularyRecord', function () {
    Route::post('listVocabularyData', 'learn.LearnSayVocabularyRecord/listVocabularyData');//能力测评列表
    Route::post('startVocabulary', 'learn.LearnSayVocabularyRecord/startVocabulary');//能力测评数据
    Route::post('startVocabularyOne', 'learn.LearnSayVocabularyRecord/startVocabularyOne');//能力测评数据
    Route::post('submitVocabulary', 'learn.LearnSayVocabularyRecord/submitVocabulary');//能力测评数据
    Route::post('submitVocabularyOne', 'learn.LearnSayVocabularyRecord/submitVocabularyOne');//能力测评数据
    Route::get('getVocabularyRecord', 'learn.LearnSayVocabularyRecord/getVocabularyRecord');//能力测评报告
});

//生词本
Route::group('student/studentSaySentence', function () {
    Route::post('listPage', 'student.StudentSaySentence/listPage');//生词本列表
    Route::post('del', 'student.StudentSaySentence/del');//生词本删除
});

//学生开通课程
Route::group('student/studentTeachSentence', function () {
    Route::post('listStudentOpen', 'student/StudentTeachSentence/listStudentOpen');//查询-学员开通课程查询(不含体验课)
    Route::post('listStudentOpenTrialClass', 'student/StudentTeachSentence/listStudentOpenTrialClass');//查询-学员开通课程查询(含体验课)
});

//机构
Route::group('organ/organization', function () {
    Route::post('listMySelectOrganization', 'organization/Organization/listMySelectOrganization');//查询-查询相关机构
});




